import 'package:flutter/cupertino.dart';

extension Str on String {
  Color toColor() {
    String colorStr = replaceAll("#", "");
    int color = int.parse("0xff${colorStr.toUpperCase()}".toUpperCase());
    return Color(color);
  }

  bool isEq(String str) {
    if (compareTo(str) == 0) {
      return true;
    } else {
      return false;
    }
  }
}
